cmake_minimum_required(VERSION 2.8)
project(svar_osdk)

include(cmake/PICMake.cmake)
set(CMAKE_CXX_STANDARD 11)
if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release)
endif()

INCLUDE_DIRECTORIES(src)

set(DjiOSDK_FOUND 1)
set(DjiOSDK_INCLUDES /user/local/include)
set(DjiOSDK_LIBS  /usr/local/lib/libdjiosdk-core.a /usr/local/lib/libdji-linker.a /usr/local/lib/libadvanced-sensing.a)
set(DjiOSDK_DEFINITIONS  -DADVANCED_SENSING)

pi_add_target(svar_osdk SHARED src REQUIRED System DjiOSDK LibUSB FFMPEG)

pi_report_target()

# Now do make install
pi_install(TARGETS svar_osdk)
